﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DTO;
using DAO;

namespace BUS
{
    public class CTPhieuGiaCong_BUS
    {

        private static CTPhieuGiaCong_BUS m_instance = null;
        public static CTPhieuGiaCong_BUS Instance
        {
            get
            {
                if (m_instance == null)
                {
                    m_instance = new CTPhieuGiaCong_BUS();
                }
                return m_instance;
            }

        }

        /// <summary>
        ///   them ct phieu gia cong
        /// </summary>
        /// 

        public bool ThemCTPhieuGiaCong(ChiTietPhieuGiaCong_DTO _item)
        {
            return ChiTietPhieuGiaCong_DAO.Instance.ThemCTPhieuGiaCong(_item.MaPhieuGC, _item.MaHangGC, _item.SoLuong, _item.DonGia);
        }
    }
}
